<template>
  <div class="bgc">
    <div class="nav-box">
      <van-tabs
        v-model="active"
        color="#fff"
        background="#d0355d"
        title-active-color="#fff"
        title-inactive-color="rgba(255, 255, 255,.6)"
      >
        <van-tab title="视频"></van-tab>
        <van-tab title="直播"></van-tab>
      </van-tabs>
    </div>
    <!-- 视频一 -->
    <div class="content-box">
      <div class="item-box">
        <h2>迈锐宝是买菜车？14万元落地国产SUV推荐？|有问必答</h2>
        <div class="autor-box">
          <van-icon name="hot" color="#ffd260" size="14" /><span>30秒懂车</span>
        </div>
        <van-image fit="cover" :src="image[0]" radius="10" />
      </div>
      <div class="item-box">
        <h2>迈锐宝是买菜车？领克06与XR-V那个好？|有问必答</h2>
        <div class="autor-box">
          <van-icon name="hot" color="#ffd260" size="14" /><span>30秒懂车</span>
        </div>
        <van-image fit="cover" :src="image[1]" radius="10" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
      image: [require('@/assets/car.png'), require('@/assets/car2.png')]
    }
  }
}
</script>

<style lang="less" scoped>
.bgc {
  .content-box {
    position: fixed;
    overflow: auto;
    top: 44px;
    bottom: 50px;
    padding: 15px 15px;
    .item-box {
      margin-bottom: 30px;
    }
    h2 {
      margin-top: 5px;
      font-size: 20px;
    }
    .autor-box {
      margin-top: 10px;
      span {
        font-size: 10px;
        margin-left: 4px;
      }
    }
    .van-image {
      margin-top: 10px;
      width: 344px;
      height: 200px;
    }
  }
}
</style>
